package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 系统消息表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "message")
public class Message {
    /**
     * 主键ID
     */
    @TableId(value = "message_id", type = IdType.INPUT)
    private Integer messageId;

    /**
     * 消息标题
     */
    @TableField(value = "message_title")
    private String messageTitle;

    /**
     * 消息内容
     */
    @TableField(value = "message_content")
    private String messageContent;

    /**
     * 消息类型：1-系统消息 2-流程消息 3-公告消息
     */
    @TableField(value = "message_type")
    private Boolean messageType;

    /**
     * 发送人ID
     */
    @TableField(value = "sender_id")
    private String senderId;

    /**
     * 发送人姓名
     */
    @TableField(value = "sender_name")
    private String senderName;

    /**
     * 接收人ID
     */
    @TableField(value = "receive_id")
    private String receiveId;

    /**
     * 接收人姓名
     */
    @TableField(value = "receive_name")
    private String receiveName;

    /**
     * 是否已读：0-未读 1-已读
     */
    @TableField(value = "is_read")
    private Boolean isRead;

    /**
     * 阅读时间
     */
    @TableField(value = "read_time")
    private Date readTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}